package asteroids.model.programs.Statement;



/**
* 
* @version 0.3
* @author  Tandan Sunil, Van Deun Luca
*
*/
public abstract class ActionStatement extends Statement {

	public ActionStatement(int line, int column ) {
		super(line, column);
	}
	
	private boolean waited;
	
	public boolean haveWaited(){
		return waited;
	}
	public void setWaited(boolean waited){
		this.waited=waited;
	}
	@Override
	public void setExecuted(boolean executed){
		super.setExecuted(executed);
		if(!executed){
			setWaited(false);
		}
	}
	
}
